<?php

require 'basehandle.php';
require '../dao/alldao.php';

class Ushopbike implements basehandle{
	public function dohandle(){
		$userid=$_POST['userid'];
		$dao=new alldao();
 		$rs=$dao->shopbike($userid);
		if(!empty($rs)){
			foreach ($rs as $key => $value) {
			 	$in[]=$value;
			  } 
			 $info[]=$in;
			//error_log(count($info));

		}
		else{
			$info=array("rs"=>"error","errorinf"=>"加载失败");
		}
		echo json_encode($info);
	}
	
}  
?>